home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 1
/
ETO Development Tools 1.iso
/
Tools - Objects
/
Installation Folder
/
ResEdit Install
< prev
next >
Wrap
Text File
|
1990-07-23
|
1KB
|
49 lines
# R E S E D I T I N S T A L L A T I O N S C R I P T
#
# Copyright Apple Computer, Inc. 1990 - All rights reserved.
#
#
# This script is used to install either ResEdit 1.2 or 2.0b2 from the
# E.T.O. #1 distribution compact disk into a folder called "ResEdit Folder"
# on the destination hard disk.
#
# Options: None
#
# This script makes use of the following Shell variables:
#
# {CDVolume} - the name of the CD Distribution volume
#
# {SystemFolder} - the path to the folder containing the currently active System
#
# {DestVolume} - the name of the volume from which the Installer was launched
#
# {ResEditOption} - a flag used to indicate which version of ResEdit to install
#
If "{ResEditOption}" == "1" ### install ResEdit 1.2
set Source "{CDVolume}Tools - Objects:ResEdit:ResEdit 1.2:"
Else If "{ResEditOption}" == "2" ### install ResEdit 2.0b2
set Source "{CDVolume}Tools - Objects:ResEdit:ResEdit 2.0b2:"
Else
Exit 1
End
### See if a folder called "ResEdit Folder" already exists,
### if so, rename it to "ResEdit Folder.Old"
if "`Exists -d "{DestVolume}ResEdit Folder"`"
if "`Exists -d "{DestVolume}ResEdit Folder.Old"`"
Delete -y "{DestVolume}ResEdit Folder.Old"
End
Rename -y "{DestVolume}ResEdit Folder" "{DestVolume}ResEdit Folder.Old"
End
Duplicate -y "{Source}" "{DestVolume}ResEdit Folder:"
### That's It!
Exit 0